<!--新建或编辑通讯录-->
<div class="modal">
    <ion-header-bar class="bar-secondary">
        <h1 class="title">通讯录</h1>
        <button class="button button-clear button-positive" on-touch="method.modalCtrl('newOne', 'hide')">cancel</button>
    </ion-header-bar>
    <ion-content overflow-scroll="false" scroll="false">
        <form ng-submit="method.addUser(newModel)">
            <div class="list">
                <div class="user-avatar">
                    <img src="{{newModel.avatar}}" on-touch="method.fileMenu()" />
                    <input type="file" id="file_select" style="display:none;" accept="image/png,image/gif,image/jpeg" fileread="fileread.Image" />
                </div>
                <label class="item item-input">
                    <span class="input-label">Name</span>
                    <input type="text" autocapitalize="off" autocorrect="off" ng-model="newModel.name" />
                </label>
                <label class="item item-input item-select">
                    <div class="input-label">
                        Gender
                    </div>
                    <select ng-model="newModel.gender">
                        <option value="male" selected>male</option>
                        <option value="female">female</option>
                        <option value="secret">secret</option>
                    </select>
                </label>
                <label class="item item-input">
                    <span class="input-label">Phone</span>
                    <input type="text" autocapitalize="off" autocorrect="off" ng-model="newModel.phone" />
                </label>
                <label class="item item-input">
                    <span class="input-label">Cell</span>
                    <input type="text" autocapitalize="off" autocorrect="off" ng-model="newModel.cell" />
                </label>
                <label class="item item-input">
                    <span class="input-label">Email</span>
                    <input type="text" autocapitalize="off" autocorrect="off" ng-model="newModel.email" />
                </label>
                <label class="item item-input">
                    <span class="input-label">Address</span>
                    <input type="text" autocapitalize="off" autocorrect="off" ng-model="newModel.address" />
                </label>
                <label class="item item-input">
                    <span class="input-label">Category</span>
                    <input type="text" autocapitalize="off" autocorrect="off" ng-model="newModel.cate" />
                </label>
            </div>
            <div class="padding">
                <button type="submit" class="button button-block button-positive">SUBMIT</button>
            </div>
        </form>
    </ion-content>
</div>
